<?php
//http://192.168.0.111/boxsys_t/com.attilax.php/report/rpt.php?iocx=../../iocx_timer&table=timer_tab_log&time_fld=timenow&tmpl=box_rpt_tmpl&orderby=%20id%20desc&timex=2015-08-03
require_once(dirname(__FILE__).'/../time/time.php');

//http://192.168.0.111/boxsys_t/com.attilax.php/report/rpt_facad.php?timex=2015-08-03
function getAppPath()
{
	 $url=$_SERVER['PHP_SELF'];	
  $arr=explode("/",$url);
	return "/".$arr[1];
}

$apppath=getAppPath();

if($_GET["timex"])
$timex=$_GET["timex"];
else
$timex=getToday();
$url="http://".$_SERVER["HTTP_HOST"].$apppath.'/com.attilax.php/report/rpt.php?iocx=../../iocx_timer&table=timer_tab_log&time_fld=timenow&tmpl=box_rpt_tmpl&orderby=%20id%20desc&timex='.$timex;
//print_r($url);
echo  file_get_contents($url);  


?>